import {ref} from "vue";

export function Add() {
    //添加好友组件
    const addFriendRef = ref(null);

    //添加好友模态框状态
    let friendModelStatus = ref(false);

    /**
     * 切换添加好友模态框
     * @param status
     */
    function changeFriendStatus(status: boolean) {
        friendModelStatus.value = status;
    }

    return {friendModelStatus, changeFriendStatus, addFriendRef};
}